import request from '@/utils/request'
import { microservices } from '@/utils'

// 评估预览-项目评估树
export function ProjectEvalInfoTemplateTreeApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/templateTree`,
    params
  })
}

// 项目-评估预览列表（列表）
export function ProjectEvalInfoApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo`,
    params
  })
}

// 评估预览-预览报表
export function ProjectEvalTemplateApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalTemplate`,
    params
  })
}

// 查询-根据ID查询（单条）
export function ProjectEvalInfoByIdApi (id) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/${id}`
  })
}


// 更新项目评估表下载文件Id
export function ProjectEvalInfoModifyFileIdApi (data) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/modifyFileId`,
    method: 'post',
    data
  })
}

